<!DOCTYPE html>
<html>
<head>
	<title></title>
</head>
<body>
	<div class="do-not-print1"><button onclick="printPage()">打印1</button></div>
	<div class="do-not-print2"><button onclick="printPage()">打印2</button></div>
	<div>这里是要打印的内容</div>
	<div style="page-break-after:always">打印分页</div>
</body>
</html>
<script type="text/javascript">
	function printPage(){
		print();
	}
</script>
<style type="text/css" media="print">
@page { margin: 0; }/*不显示页眉页脚*/
.do-not-print1{
	display:none;
}
</style>
<style type="text/css">
@media print{
	.do-not-print2{
		display:none;
	}
}
</style>